﻿using KAKA.Domain;
using Morus.Infrastructure;
using System;
using System.Linq.Expressions;

namespace KAKA.Repository
{
    public class UndeleteEventSpecification : Specification<Event>
    {
        public override Expression<Func<Event, bool>> Expression
        {
            get
            {
                return Eval(r => (r.Status & EventStatus.Deleted) != EventStatus.Deleted).Expression;
            }
        }
    }
}
